﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ClientWebPart 
    Name="BuienradarAppPart" 
    Title="Buienradar" 
    Description="Toont buienradar in SharePoint" 
    DefaultWidth="256" DefaultHeight="256"
    
    >

    <!-- Content element identifies the location of the page that will render inside the client web part
         Properties are referenced on the query string using the pattern _propertyName_
         Example: Src="~appWebUrl/Pages/ClientWebPart1.aspx?Property1=_property1_" -->
    <Content 
      Type="html" 
      Src="~remoteAppUrl/Pages/BuienradarAppPart.aspx?editmode=_editMode_&amp;width=_widthImage_&amp;height=_heightImage_&amp;country=_country_&amp;city=_city_&amp;postalcode=_postalcode_" />

    <!-- Define properties in the Properties element.
         Remember to put Property Name on the Src attribute of the Content element above. -->
    <Properties>
      <Property
        Name="widthImage" Type="string"
        WebBrowsable="true" WebDisplayName="Breedte (px)"
        WebDescription="" WebCategory="Buienradar"
        DefaultValue="256" RequiresDesignerPermission="true">
      </Property>
      <Property
        Name="heightImage" Type="string"
        WebBrowsable="true" WebDisplayName="Hoogte (px)"
        WebDescription="" WebCategory="Buienradar"
        DefaultValue="256" RequiresDesignerPermission="true">
      </Property>
      <Property
        Name="country" Type="enum"
        WebBrowsable="true" WebDisplayName="Land"
        WebDescription="" WebCategory="Buienradar"
        DefaultValue="nl" RequiresDesignerPermission="true">
        <EnumItems>
          <EnumItem WebDisplayName ="Nederland" Value="nl"/>
          <EnumItem WebDisplayName ="Belgie" Value="be"/>
          <EnumItem WebDisplayName ="Frankrijk" Value="fr"/>
        </EnumItems>
      </Property>
      <Property
          Name="city" Type="string"
          WebBrowsable="true" WebDisplayName="Plaats"
          WebDescription="" WebCategory="Buienradar"
          DefaultValue="Eindhoven" RequiresDesignerPermission="true">
      </Property>
      <Property
          Name="postalcode" Type="string"
          WebBrowsable="true" WebDisplayName="Postcode"
          WebDescription="" WebCategory="Buienradar"
          DefaultValue="5653PX" RequiresDesignerPermission="true">
      </Property>


    </Properties>

  </ClientWebPart>
</Elements>
